package com.learn.spring.async.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;


@Data
@ConfigurationProperties(prefix = "thread.pool")
public class ThreadPoolProperties {

    /** 核心线程数 */
    private int corePoolSize = 10;

    /** 最大线程数 */
    private int maxPoolSize = 30;

    /** 队列容量 */
    private int queueCapacity = 200;

    /** 线程最大空闲时间（秒） */
    private int keepAliveSeconds = 60;

    /** 线程名前缀 */
    private String threadNamePrefix = "asyncExecutor-";

}
